<!--
 * @Author: 谢小康 2170673706@qq.com
 * @Date: 2024-02-07 13:02:29
 * @LastEditors: 谢小康 2170673706@qq.com
 * @LastEditTime: 2024-02-07 13:08:51
 * @FilePath: \My-bolg\My_Blog\src\components\myinfo.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <div class="body">
        <div class="shell">
            <img src="@/assets/img/1.jpg" alt="" class="cover">
            <div class="head">
                <div class="data">
                    <div class="title1">康<span>live</span></div>
                    <div class="title2">一个前端菜菜</div>
                </div>
            </div>
            <div class="foot">
                <div class="tags">
                    <span class="tag">#前端</span>
                    <span class="tag">#健身</span>
                    <span class="tag">#旅游</span>
                    <span class="tag">#划水</span>
                    <span class="tag">#￥</span>
                    <span class="tag">#不想学习</span>
                </div>
                <div class="introduce">
                    <p>
                        康,男,一个成都大学大三在读学生(2024),一个自学前端的小白,
                        一个爱健身爱旅游,一个不想学习的划水人.喜欢小猫小狗(特别是胖胖的,软软的),
                        梦想是走遍全世界,见一切没见过的未知事物
                    </p>
                    <p>
                        欢迎大家来我的情侣网站逛逛哦(<a href="http://xxkdjy.top" target="_blank">xxkdjy.top</a>),
                    </p>
                </div>
            </div>
        </div>
    </div>
</template>

<script setup>

</script>

<style lang="scss" scoped>
.body {
    padding:20px 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: content-box;
    @include userTheme {
        font-family: getThemeValue("fontfamily");
        background: getThemeValue("bgColor");
    }
}

.shell {
    max-width: 780px;
    width: 90%;
    background: #ffffff;
    position: relative;
    padding: 15px;
}

.head {
    height: 340px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.head::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    background: url("http://imgfile.xxkdjy.top/2.jpg");
    background-size: cover;
    z-index: -1;
    transform: skewY(-4deg);
    transform-origin: 0 0;
}

.cover {
    position: absolute;
    top: 190px;
    left: 25px;
    width: 220px;
    z-index: 2;
    border-radius: 500px;
    border: 10px #fff solid;
    box-shadow: 0 5px 10px #00000065;
}

.data {
    padding: 190px 0 0 280px;
    text-shadow: 0 0 20px #000;
    
    @include userTheme {
        font-family: getThemeValue("fontfamily");
    }
}

.data .title1 {
    color: white;
    font-size: 50px;
    font: 900 50px '';
    margin-bottom: 5px;
    position: relative;
}

.data .title1 span {
    position: absolute;
    top: 17px;
    margin-left: 12px;
    background: #ffe44c;
    border-radius: 5px;
    color: #000000;
    font-size: 14px;
    padding: 0px 4px;
}

.data .title2 {
    color: #fff;
    font: 500 24px '';
}

.foot {
    line-height: 26px;
    color: #444;
    display: flex;
}

.tags {
    padding-left: 30px;
    padding-top: 100px;
    width: 280px;
    float: left;
    text-align: center;
}

.tag {
    background: rgb(149, 178, 255);
    color: #fff;
    border-radius: 10px;
    padding: 3px 8px;
    font-size: 14px;
    margin-right: 4px;
    line-height: 35px;
    cursor: pointer;
}

.tag:hover {
    background: #eee4ad;
    color: #444;
}

.introduce {
    padding: 25px 0 0 35px;
    width: 480px;
    float: left;

}

.introduce p {
    /* 将对象作为弹性伸缩盒子模型显示 */
    display: -webkit-box;
    /* 设置或检索伸缩盒对象的子元素的排列方式  */
    -webkit-box-orient: vertical;
    /* 限制在一个块元素显示的文本的行数 */
    -webkit-line-clamp: 4;
    /* 限定宽度 */
    width: 100%;
    /* 溢出隐藏 */
    overflow: hidden;
    /* 用省略号隐藏溢出内容 */
    text-overflow: ellipsis;

}
a{
    color:rgb(255, 5, 5);
}
@media only screen and (max-width: 650px) {
    .foot {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .shell {
        width: 90%;
    }

    .data {
        padding: 200px 0 0 45%;
        text-shadow: 0 0 20px #000;
    }

    .tags {
        padding-top: 50px;
    }

    .cover {
        position: absolute;
        top: 280px;
        left: 25px;
        width: 100px;
        z-index: 2;
        border-radius: 50%;
        border: 10px #fff solid;
        box-shadow: 0 5px 10px #00000065;
    }

    .introduce {
        padding: 0 0;
        width: 100%;
        float: left;

    }

    .introduce p {
        -webkit-line-clamp: 5;
    }
}
</style>